from django.conf import settings
from page.models import Page


def estaticos_contex_processor(request):
    menus = Page.objects.filter(categoria = 1).filter(pai=None).all().order_by('ordem')
    submenu = Page.objects.filter(categoria = 1).all().order_by('ordem')
    return{
       'menus' : menus,
       'submenu' : submenu,
    }
